package com.baofu.paycore.service.validate.impl.transfer;

import com.baofu.paycore.common.enums.RedisKeyEnum;
import com.baofu.paycore.common.exception.PayCoreBizException;
import com.baofu.paycore.common.exception.ValidateException;
import com.baofu.paycore.common.utils.Constant;
import com.baofu.paycore.common.utils.RedisKeyUtil;
import com.baofu.paycore.manager.cache.RedisManager;
import com.baofu.paycore.manager.model.FreezeBO;
import com.baofu.paycore.manager.model.PayBaseBO;
import com.baofu.paycore.manager.model.TransferBO;
import com.baofu.paycore.manager.model.preAuth.PreAuthBO;
import com.baofu.paycore.manager.storer.FreezeOrderRepository;
import com.baofu.paycore.manager.storer.PreAuthRepository;
import com.baofu.paycore.manager.storer.TransferOrderRepository;
import com.baofu.paycore.service.facade.enums.PayCoreErrorCode;
import com.baofu.paycore.service.facade.enums.PayStatusEnums;
import com.baofu.paycore.service.facade.model.authconfirm.AuthConfirmDTO;
import com.baofu.paycore.service.facade.model.transfer.UnfreezeTransferDTO;
import com.baofu.paycore.service.facade.model.withdraw.WithdrawDTO;
import com.baofu.paycore.service.validate.AbstractPayValidate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * <p>
 * </p>
 * User:ames wang  Date: 2017/6/28
 */
@Slf4j
@Component
public class UnfreezeTransferValidate extends AbstractPayValidate<UnfreezeTransferDTO> {

    @Autowired
    private FreezeOrderRepository freezeOrderRepository;

    /**
     * redis服务
     */
    @Autowired
    private RedisManager redisManager;
    /**
     * 提现参数校验
     *
     * @param unfreezeTransferDTO     被校验对象
     */
    public void paramsValidate(UnfreezeTransferDTO unfreezeTransferDTO){
        super.paramsValidate(unfreezeTransferDTO);
    }
}
